Companion
object Companion
Functions
Link copied to clipboard
fun createOrNull(canvas: JsAny, renderer: VideoRenderer, player: KitePlayer): KitePlayerPictureInPicture?
Builds picture in picture for canvas, or answers null when this browser has neither feature, or when canvas is not an element of a page (an OffscreenCanvas is not).
fun createOrNull(canvas: JsAny, setViewport: (width: Int, height: Int, scale: Float) -> Unit, play: () -> Unit, pause: () -> Unit): KitePlayerPictureInPicture?
Builds picture in picture for a canvas that is drawn from somewhere else, such as the page's canvas of a worker player, whose drawing was handed to the worker; or answers null as the other overload does. KitePlayerWorker.pictureInPictureOrNull calls this.